#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <iostream.h>
#include <algo.h>

#ifdef MAIN
#define lexcmp1_test main
#endif
#endif
int lexcmp1_test(int, char**)
{
  cout<<"Results of lexcmp1_test:"<<endl;
const unsigned size = 6;
#ifndef ACORN_CFRONT
char n1[size] = "shoe";
char n2[size] = "shine";
#else
static char n1[size] = "shoe";
static char n2[size] = "shine";
#endif

  bool before = lexicographical_compare(n1, n1 + size, n2, n2 + size);
  if(before)
    cout << n1 << " is before " << n2 << endl;
  else
    cout << n2 << " is before " << n1 << endl;
  return 0;
}
